import Blank from '@/layouts/blank.vue';
import Layout from '@/layouts/index.vue';
import Network from '@/pages/system/allocation/index.vue'

export default [
  {
    path: '/dashboard',
    component: Blank,
    redirect: '/dashboard/base',
    name: 'dashboard',
    meta: {
      title: {
        zh_CN: '仪表盘',
        en_US: 'Dashboard',
      },
      icon: 'menu-dashboard',
      orderNo: 0,
    },
    children: [
      {
        path: 'base',
        name: 'DashboardBase',
        component: () => import('@/pages/dashboard/index.vue'),
        meta: {
          icon: 'menu-snap',
          title: {
            zh_CN: '仪表盘性能',
            en_US: 'list',
          },
        },
      },
    ],
  },
  {
    path: '/preview',
    component: Layout,
    redirect: '/preview/base',
    name: 'preview',
    meta: {
      title: {
        zh_CN: '实时预览',
        en_US: 'Preview',
      },
      icon: 'menu-preview',
      orderNo: 1,
    },
    children: [
      {
        path: 'base',
        name: 'previewBase',
        component: () => import('@/pages/preview/index.vue'),
        meta: {
          icon: 'menu-preview',
          title: {
            zh_CN: '预览列表',
            en_US: 'previewList',
          },
        },
      },
    ],
  },
  {
    path: '/system',
    component: Layout,
    redirect: '/system/equipment',
    name: 'system',
    meta: {
      title: {
        zh_CN: '系统服务',
        en_US: 'System',
      },
      icon: 'menu-system',
      orderNo: 2,
    },
    children: [
      {
        path: 'equipment',
        name: 'systemEquipment',
        component: () => import('@/pages/system/equipment/index.vue'),
        meta: {
          icon: 'menu-equipment',
          title: {
            zh_CN: '设备管理',
            en_US: 'Equipment',
          },
        },
      },
      {
        path: 'equipmentAdd',
        name: 'systemEquipmentAdd',
        component: () => import('@/pages/system/equipment/Edit.vue'),
        meta: {
          hidden: true,
          icon: 'menu-equipment',
          title: {
            zh_CN: '设备添加',
            en_US: 'EquipmentAdd',
          },
        },
      },
      {
        path: 'equipmentEdit',
        name: 'systemEquipmentEdit',
        component: () => import('@/pages/system/equipment/Edit.vue'),
        meta: {
          hidden: true,
          icon: 'menu-equipment',
          title: {
            zh_CN: '设备修改',
            en_US: 'EquipmentEdit',
          },
        },
      },
      {
        path: 'equipmentDetail',
        name: 'systemEquipmentDetail',
        component: () => import('@/pages/system/equipment/Detail.vue'),
        meta: {
          hidden: true,
          icon: 'menu-equipment',
          title: {
            zh_CN: '设备详情',
            en_US: 'EquipmentDetail',
          },
        },
      },
      {
        path: 'algorithm',
        name: 'systemAlgorithm',
        component: () => import('@/pages/system/algorithm/index.vue'),
        meta: {
          icon: 'menu-algorithm',
          title: {
            zh_CN: '算法任务',
            en_US: 'algorithm',
          },
        },
      },
      {
        path: 'smart',
        name: 'systemSmart',
        component: () => import('@/pages/system/smart/index.vue'),
        meta: {
          icon: 'menu-algorithm',
          title: {
            zh_CN: 'Smart配置',
            en_US: 'smart',
          },
        },
      },
      {
        path: 'smartDetail',
        name: 'systemSmartDetail',
        component: () => import('@/pages/system/smart/Detail.vue'),
        meta: {
          hidden: true,
          icon: 'menu-algorithm',
          title: {
            zh_CN: '默认参数配置',
            en_US: 'smartDetail',
          },
        },
      },
      {
        path: 'smartEdit',
        name: 'systemSmartEdit',
        component: () => import('@/pages/system/smart/Edit.vue'),
        meta: {
          hidden: true,
          icon: 'menu-algorithm',
          title: {
            zh_CN: '默认参数配置修改',
            en_US: 'smartEdit',
          },
        },
      },
      {
        path: 'allocation',
        name: 'systemAllocation',
        component: Network,
        redirect: '/system/allocation/network',
        meta: {
          icon: 'menu-algorithm',
          title: {
            zh_CN: '系统配置',
            en_US: 'allocation',
          },
        },
        children: [
          {
            path: 'network',
            name: 'systemAllocationNetwork',
            component: () => import('@/pages/system/allocation/network/index.vue'),
            meta: {
              icon: '',
              title: {
                zh_CN: '网络配置',
                en_US: 'network',
              },
            },
          },
          {
            path: 'datapush',
            name: 'systemAllocationDatapush',
            component: () => import('@/pages/system/allocation/datapush/index.vue'),
            meta: {
              icon: '',
              title: {
                zh_CN: '数据推送配置',
                en_US: 'datapush',
              },
            },
          },
          {
            path: 'operation',
            name: 'systemAllocationOperation',
            component: () => import('@/pages/system/allocation/operation/index.vue'),
            meta: {
              icon: '',
              title: {
                zh_CN: '系统运维',
                en_US: 'operation',
              },
            },
          },
        ]
      },
      {
        path: 'library',
        name: 'systemLibrary',
        component: () => import('@/pages/system/library/index.vue'),
        meta: {
          icon: 'menu-algorithm',
          title: {
            zh_CN: '库管理',
            en_US: 'library',
          },
        },
      },
    ],
  },
  {
    path: '/capture',
    component: Layout,
    redirect: '/capture/record',
    name: 'capture',
    meta: {
      title: {
        zh_CN: '抓拍中心',
        en_US: 'Capture',
      },
      icon: 'menu-capture',
      orderNo: 3,
    },
    children: [
      {
        path: 'record',
        name: 'captureRecord',
        component: () => import('@/pages/capture/record/index.vue'),
        meta: {
          icon: 'menu-capture',
          title: {
            zh_CN: '抓拍记录',
            en_US: 'captureRecord',
          },
        },
      },
      {
        path: 'recordFaceDetail',
        name: 'captureBase',
        component: () => import('@/pages/capture/record/Face/Detail.vue'),
        meta: {
          hidden: true,
          icon: 'menu-capture',
          title: {
            zh_CN: '人脸识别详情',
            en_US: 'recordFaceDetail',
          },
        },
      },
      {
        path: 'warning',
        name: 'captureWarning',
        component: () => import('@/pages/capture/warning/index.vue'),
        meta: {
          icon: 'menu-capture',
          title: {
            zh_CN: '预警记录',
            en_US: 'Warning',
          },
        },
      },
      {
        path: 'picture',
        name: 'capturePicture',
        component: () => import('@/pages/capture/picture/index.vue'),
        meta: {
          icon: 'menu-picture',
          title: {
            zh_CN: '图片设置',
            en_US: 'Picture',
          },
        },
      },
    ],
  },
];
